import requests

from common.get_header import get_header


class Ihrm_Department_Api(object):
    @classmethod
    def department(cls,header):
        res = requests.get(url='https://heimahr.itheima.net/api/company/department',
                           headers=header)
        return res


if __name__=='__main__':
    req_header=get_header()
    req = Ihrm_Department_Api.department(req_header)
    print(req.json())